// layout
html, body, #root {
  height: 100%;
  min-width: $min-width;
}

.app {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.app-header {
  flex: 0 0 $header-height;
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-width: $min-width;
  background: #4952FF;
  color: #fff;
  user-select: none;
  overflow: hidden;
}

.app-footer {
  flex: 0 0 $footer-height;
}

.app-body {
  flex: 1;
}

.sidebar-fixed {
  .app-header {
    position: fixed;
    top: 0;
    left: 0; // $sidebar-width + 1;
    right: 0;
    width: auto;
    min-width: $min-width - $sidebar-width;
  }
  .app-body {
    margin-top: $header-height;
    height: 100%;

    .sidebar {
      position: fixed;
      width: $sidebar-width;
      top: $header-height;
      left: 0;
      bottom: 0;
      background: #161616;
      overflow: hidden;
      z-index: 10;
    }
    .app-main {
      margin-left: $sidebar-width;
      height: 100%;
    }
  }

  .app-footer {
    position: fixed;
    left: $sidebar-width + 1;
    right: 0;
    bottom: 0;
    width: auto;
    min-width: $min-width - $sidebar-width;
  }
}
